import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";
import type { ResultType } from "@/utils/http/types";

type Result = ResultType & {
  data: Array<any>;
};

export const getAsyncRoutes = () => {
  return http.request<Result>("get", baseUrlApi("/menu/get_async_menu"));
};
